//package com.yang.config;
//
//import javax.annotation.Resource;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class MyWebMvcConfigurer implements WebMvcConfigurer {
//
//	@Resource
//	private LoginInterceptor loginInterceptor;
//	@Resource
//	private RoleInterceptor roleInterceptor;
//
//	@Override
//	public void addInterceptors(InterceptorRegistry registry) {
//		System.out.println("总拦截器");
//		// 自定义拦截器，添加拦截路径和排除拦截路径
//		registry.addInterceptor(loginInterceptor).addPathPatterns("/**").excludePathPatterns("/login/userRegister","/login/test2","/login/userLogin");
//
//		registry.addInterceptor(roleInterceptor).addPathPatterns("/**")
//				.excludePathPatterns("/login/userRegister", "/login/userLogin","/report/loadReportContentRelease", "/fileDownload/download", "/login/test2");
//	}
//}
